import request from '@/utils/request'

// 查询查询条件列表-分页
export function queryTSecUserList(data) {
  return request({
    url: '/tJxSearch/queryTJxSearchNameList',
    method: 'post',
    data
  })
}
// 新增查询条件
export function insertTJxSearch(data) {
  return request({
    url: '/tJxSearch/insertTJxSearch',
    method: 'post',
    data
  })
}
// 修改查询条件
export function updateTJxSearch(data) {
  return request({
    url: '/tJxSearch/updateTJxSearch',
    method: 'put',
    data
  })
}
// 删除查询条件
export function deleteTJxSearch(data) {
  return request({
    url: '/tJxSearch/deleteTJxSearch',
    method: 'delete',
    data
  })
}
// 删除分类
export function deleteSearch(data) {
  return request({
    url: '/tJxSearch/deleteSearch',
    method: 'delete',
    data
  })
}
// 新增分类
export function insertSearchClas(data) {
  return request({
    url: '/tJxSearch/insertSearch',
    method: 'post',
    data
  })
}
// 修改分类
export function updateSearch(data) {
  return request({
    url: '/tJxSearch/updateSearch',
    method: 'put',
    data
  })
}
// 查询各栏目类型列表
export function queryJxznType(params) {
  return request({
    url: '/common/queryJxznType',
    method: 'get',
    params
  })
}
// 默认
export function updateDefault(data) {
  return request({
    url: '/tJxSearch/updateDefault',
    method: 'post',
    data
  })
}
